package work.shyk.msf.xml.model;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * description: <br>
 * createTime: 2019/9/1111:00 <br>
 *
 * @author zzh
 */
@Data
@XmlRootElement(name = "instance")
@XmlAccessorType(XmlAccessType.FIELD)
public class Instance {
    @XmlElement(name = "instanceId")
    private String instanceId;

    @XmlElement(name = "hostName")
    private String hostName;

    @XmlElement(name = "app")
    private String app;

    @XmlElement(name = "ipAddr")
    private String ipAddr;

    @XmlElement(name = "status")
    private String status;

    @XmlElement(name = "overriddenstatus")
    private String overriddenstatus;

    @XmlElement(name = "port")
    private Integer port;

    @XmlElement(name = "securePort")
    private Integer securePort;

    @XmlElement(name = "countryId")
    private String countryId;

    @XmlElement(name = "dataCenterInfo")
    private DataCenterInfo dataCenterInfo;

    @XmlElement(name = "leaseInfo")
    private LeaseInfo leaseInfo;

    @XmlElement(name = "metadata")
    private Metadata metadata;

    @XmlElement(name = "homePageUrl")
    private String homePageUrl;

    @XmlElement(name = "statusPageUrl")
    private String statusPageUrl;

    @XmlElement(name = "healthCheckUrl")
    private String healthCheckUrl;

    @XmlElement(name = "vipAddress")
    private String vipAddress;

    @XmlElement(name = "secureVipAddress")
    private String secureVipAddress;

    @XmlElement(name = "isCoordinatingDiscoveryServer")
    private boolean isCoordinatingDiscoveryServer;

    @XmlElement(name = "lastUpdatedTimestamp")
    private long lastUpdatedTimestamp;

    @XmlElement(name = "lastDirtyTimestamp")
    private long lastDirtyTimestamp;

    @XmlElement(name = "actionType")
    private String actionType;
}
